//
//  VCOf4thTabBarItem.m
//  UIHomeWork_07
//
//  Created by tusm on 16/7/23.
//  Copyright © 2016年 tusm. All rights reserved.
//

#import "VCOf4thTabBarItem.h"
#import "JHButton.h"
#import "LaGoViewController.h"

@interface VCOf4thTabBarItem ()

@end

@implementation VCOf4thTabBarItem

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self createSubView];
    self.navigationController.navigationBar.hidden = YES;
}
- (void)createSubView{

    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height / 3)];
    [self.view addSubview:imageView];
    imageView.image = [UIImage imageNamed:@"icon_resume_preview_coverImage"];
    imageView.userInteractionEnabled = YES;
    
    
   
    JHButton *button = [JHButton buttonWithType:UIButtonTypeCustom frame:CGRectMake(imageView.center.x - 50  ,imageView.center.y - 50, 100, 100) title:@"登录" image:[UIImage imageNamed:@"登录"] handler:^(UIButton *sender) {
        
    }];
    [imageView addSubview:button];
 [button addTarget:self action:@selector(handleButton:) forControlEvents:UIControlEventTouchUpInside];
}

- (void)handleButton:(UIButton *)button{
    self.hidesBottomBarWhenPushed = YES;

    [self.navigationController pushViewController:[[LaGoViewController alloc] init] animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
